<?php include("includes/startPage.php"); checkLogin(0); ?>
<?php include('includes/header.php'); printHeader("Index", "Nordic Sauna");?> <!-- (PageTitle, Banner Text) Prints <head>, opens <body> and prints banner -->
<?php include('includes/navigation.php'); printLeftMenu("index"); ?> <!-- Navigation include, (currentpagename) -->

<?php OpenContentSection(); ?> 
	<!-- Content Starts -->
	<h2>My Software</h2>
        <p>This page shows the software that you have downloaded, you can view details about each of the software or re-download them from this page.</p>
        <?php
            if (isset($_SESSION["username"]) == true)
            {
                $userSoftware = ns_dao_software::getUserSoftware($_SESSION['username']);
                foreach ($userSoftware as $k => $v)
                {
                    echo '<a href="software.php?id=' . $v['SoftwareID'] . '">' . ns_dao_software::GetSoftwareNameViaID($v['SoftwareID']) . '</a><br />';
                }
            }
        ?>
	<!-- Content Ends -->
<?php CloseContentSection(); ?> 

<?php include('includes/footer.php');?>




